package com.pw.demo3.mapper;

import com.pw.demo3.bean.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    Employee selectByName(String name);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    List<Employee> selectByKeyWord(String key);

    List<Employee> selectByDeptId(Integer deptId);
}